import store from '@/store'
export default {


    getUserInfo() {
        let userInfo = store.getters.userInfo;
        userInfo = userInfo ? userInfo : {};
        return userInfo;
    },

    getCurTeamInfo() {
      var aaa=store.getters;
        return store.getters.getTeamInfo ? store.getters.getTeamInfo : "";
        /*
        debugger
        let TeamInfo = Cookies.get(TeamInfoKey);
        TeamInfo = TeamInfo ? TeamInfo : "{}";
        return JSON.parse(TeamInfo);
        */
    },

    setCurTeamInfo(teamInfo) {
        store.commit('setTeamInfo', teamInfo)
    },

    removeTeamInfo() {
        let TeamInfo = {
            id:''
        }
        store.commit('setTeamInfo', TeamInfo)
    }
}
